import type { RouteRecordRaw } from 'vue-router'
import frame from '@/components/frame/frame.vue'
import dashboard from './dashboard'
import content from './content'

export const menuRoutes: Array<RouteRecordRaw>= [
	...dashboard,
	...content
]

export const routes: Array<RouteRecordRaw>= [
	{
		path: '/',
		name: 'home',
		component: frame,
		redirect:{
			name:"dashboard"
		},
		children:menuRoutes
	},
	{
		path: '/login',
		name: 'login',
		component: () => import('@/views/login/login.vue')
	}
]
